import http from "@/utils/request_user";
import http_admin from "@/utils/request_admin";

export const Login = (params) =>{
    return http_admin.post('/employee/login',params)
}
export const sendCode = (params)=>{
    return http_admin.post('employee/sendMsg',params)
}
//获取所有员工信息
export const getPage = (params) =>{
    return http_admin.get('employee/page',params)
}
//添加员工
export const add = (params) =>{
    return http_admin.post('/employee/add',params)
}
//修改员工
export const update = (params) =>{
    return http_admin.put('/employee',params)
}
//删除员工
export const del = (params) =>{
    return http_admin.delete('/employee',params)
}